package cn.edu.sgu.www.mhxysy.service.fabao.impl;

import cn.edu.sgu.www.mhxysy.entity.fabao.FabaoSixiangType;
import cn.edu.sgu.www.mhxysy.mapper.fabao.FabaoSixiangTypeMapper;
import cn.edu.sgu.www.mhxysy.service.fabao.FabaoSixiangTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class FabaoSixiangTypeServiceImpl implements FabaoSixiangTypeService {

    private final FabaoSixiangTypeMapper fabaoSixiangTypeMapper;

    @Autowired
    public FabaoSixiangTypeServiceImpl(FabaoSixiangTypeMapper fabaoSixiangTypeMapper) {
        this.fabaoSixiangTypeMapper = fabaoSixiangTypeMapper;
    }

    @Override
    public List<FabaoSixiangType> selectAll() {
        return fabaoSixiangTypeMapper.selectList(null);
    }

    @Override
    public FabaoSixiangType selectById(Integer id) {
        return fabaoSixiangTypeMapper.selectById(id);
    }

}